<extend name="base" />

<block name="style2">
   <link rel="stylesheet" type="text/css" href="__PUBLIC__/Module/CSS/jiaoliu.css">
</block>
<block name="js2">
  <script type="text/javascript">
    url='<{:U("Home/Module/choseModule")}>';
    backurl='<{:U("Home/Module/DataEntry")}>';
  </script>
  <script type="text/javascript" src="__PUBLIC__/Module/JS/jiaoliu.js"></script>
</block>

<block name="meau">
  <div class="col-sm-3 col-md-2 sidebar">
    <ul class="nav nav-sidebar">
      <if condition="$form eq 'usermanage'">
        <li><a href='<{:U("Home/Module/moduleInfo")}>'>模块信息</a></li>
      <else />
        <li><a href='<{:U("Home/Module/baseInfo")}>'>基础信息</a></li>
        <li class="active"><a href='<{:U("Home/Module/logData")}>'>录入数据</a></li>
        <li><a href='<{:U("Home/Module/verdata")}>'>核对数据</a></li>
      </if>
    </ul>
  </div>
</block>

<block name="content">
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"><!--父元素-->
  <h2 class="sub-header"><{$baseData["site_name"]}>录入交流专业信息 </h2><!--子2元素-->
    <div class="table table-responsive "><!--子3元素-->
      <table class="table table-striped table-bordered table-condensed table-hover">
        <thead style="color: #989898;">
          <tr>
            <th>序号</th>
            <th>项目批次</th>
            <th>内验时间</th>
            <th>区县</th>
            <th>立项站点</th>
            <th>项目编码</th>
            <th>建站方式</th>
          </tr>
        </thead>
        <tbody style="color: #989898;">
          <tr>
            <td><{$baseData["id"]}></td>
            <td><{$baseData["batch"]}></td>
            <td><{$baseData["inner_check_time"]}></td>
            <td><{$baseData["zone"]}></td>
            <td><{$baseData["site_name"]}></td>
            <td><{$baseData["project_code"]}></td>
            <td><{$baseData["construction_type"]}></td>
          </tr>
        </tbody>
      </table>
    </div><!--子3元素-->
    <br /><br />

    <div role="tab" id="headingOne"><!--子4元素-->
      <h5 style="font-size: 14px">
        <form  method="post" enctype="multipart/form-data"
               action='<{:U("Home/Module/DataEntry",array("type"=>"submit"))}>' >
          <table class="table table-striped table-bordered table-condensed">
            <thead>
              <tr>
                <th>工作量</th>
                <th>送审金额</th>
                <th>订单金额</th>
                <th>差异金额</th>
                <th>差异原因</th>
                <th>是否完工</th>
                <th>提交</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <input name="workload" type="text" class="form-control input-sm" placeholder="">
                </td>
                <td>
                  <input type="text" name="ecost" class="ecost form-control input-sm" readonly="readonly" />
                </td>
                  <td style="margin: 0px;padding: 0px">
                    <input name="ocost" type="text" class="ocost form-control input-sm " placeholder=输入金额 value="">
                    <input  type="file" name="fileUpload" class="upload"/>
                  </td>
                  <td>
                    <input class="diff form-control input-sm" type="text" name="diff" value="" readonly="readonly">
                  </td>
                  <td>
                    <input name="diff_reason" type="text" class="form-control input-sm" placeholder="">
                  </td>
                  <td>
                    <div>
                      <label class="lableft">
                        <input class="finish" type="radio" name="finish" value="1">
                        <span class="spanleft">是</span>
                      </label>
                      <label class="labright">
                        <input class="finish" type="radio" name="finish" value="0">
                        <span class="spanright">否</span>
                      </label>
                    </div>
                  </td>
                  <td>
                    <input type="hidden" name="major" value='<{$major}>'>
                    <input type="hidden" name="project_code" value="<{$project_code}>">
                    <button type="submit"   class="btn btn-default"  data-container="body" data-toggle="popover" data-placement="top" onclick="if(confirm('确定提交吗?')){return true;}
                    return false;" >提交</button>
                  </td>
                </tr>
              </tbody>
            </table>
        </form>
      </h5>
    </div><!--子4元素-->
    <br />

    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne"><!--子5元素-->
      <table class="table table-striped table-bordered table-condensed table-hover">
        <thead >
          <tr><td colspan="9" style="text-align:left"><button class="add btn btn-primary" type="button">确认添加</button></td></tr>
          <div id="promot"><p></p></div>
          <tr>
            <td>专业类型</td>
            <td>市电引入类型</td>
            <td>计价方式</td>
            <td>模块名称</td>
            <td>模块属性</td>
            <td>基准价格</td>
            <td>超基础价</td>
            <td>基准数量</td>
            <td>购买数量</td>
          </tr>
        </thead>
        <tbody>
         <tr class="linkage">
          <td>
            <if condition="$major">
              <select name="type">
                  <option value="<{$major}>"><{$major}></option>
              </select>
            <else />
              <select name="type">
                  <option value="请选择">请选择</option>
                  <option value="土建专业">土建专业</option>
                  <option value="铁塔专业">铁塔专业</option>
                  <option value="配套专业">配套专业</option>
                  <option value="交流专业">交流专业</option>
              </select>
            </if>
          </td>
          <td>
            <select name="number">
                <option value="请选择">请选择</option>
                <foreach name="JLdata" item="v">
                <option value="<{$v.number}>"><{$v.number}></option>
                </foreach>
            </select>
          </td>
          <td name="remark" title="">
            计价方式...
          </td>
            <td>
              <select name="module_name">
                  <option value="请选择">请选择</option>
              </select>
            </td>
            <td>
              <select name="class">
                <option value="请选择">请选择</option>
                <option value="新建">新建</option>
                <option value="改造">改造</option>
              </select>
            </td>
            <td>
              <input style="width:80px" type="text" name="baseprice" value="" readonly="readonly">
            </td>
            <td>
              <input style="width:80px" type="text" name="safeprice" value="" readonly="readonly">
            </td>
            <td>
              <input style="width:80px" type="text" name="basenum" value="" readonly="readonly">
            </td>
            <td>
              <input style="width:80px" type="number" name="buynumber" value="">
            </td>
          </tr>
          <tr>
            <td colspan="9" style="text-align:right">
              <button class="btn btn-primary sub">暂时添加</button>
            </td>
          </tr>
        </tbody>
      </table>
    <div align="right" class="table table-responsive "><!--子6元素-->
      <div class="collapse" id="collapseExample">
        <table class="table table-striped table-bordered table-condensed table-hover">
          <thead>
            <tr>
              <td>模块名称</td>
              <td>市电引入类型</td>
              <td>模块属性</td>
              <td>基准价格</td>
              <td>超基础价格</td>
              <td>购买数量</td>
              <td>基准数量</td>
              <td>模块分类</td>
            </tr>
          </thead>
          <tbody class="tlook">
          </tbody>
        </table>
      </div>
      <button class="btn btn-primary look" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">已选择模块
      </button>
      <button class="btn btn-primary empty">清空已选模块</button>
    </div>
  </div>
</div><!--父元素-->
</block>
